home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Harvest C 1.3 / Source Code / OMF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-02  |  1.7 KB  |  72 lines  |  [TEXT/ALFA]

  1. /*
  2.  * Harvest C
  3.  * 
  4.  * Copyright 1991 Eric W. Sink   All rights reserved.
  5.  * 
  6.  * This file defines the interface for OMF records.
  7.  * 
  8.  */
  9.  
  10. #ifndef OMF_INTERFACE
  11. #define OMF_INTERFACE
  12.  
  13. typedef struct MPWRecord_S      MPWRecord_t;
  14. typedef MPWRecord_t P__H       *MPWRecordVia_t;
  15. typedef struct MPWDict_S        MPWDict_t;
  16. typedef MPWDict_t P__H         *MPWDictVia_t;
  17. typedef struct MPWDictList_S    MPWDictList_t;
  18. typedef MPWDictList_t P__H     *MPWDictListVia_t;
  19. typedef struct MPWList_S        MPWList_t;
  20. typedef MPWList_t P__H         *MPWListVia_t;
  21.  
  22. enum MPWRecords_E {
  23.     MPWRec_Pad,
  24.     MPWRec_First,
  25.     MPWRec_Last,
  26.     MPWRec_Comment,
  27.     MPWRec_Dictionary,
  28.     MPWRec_Module,
  29.     MPWRec_Entry_Point,
  30.     MPWRec_Size,
  31.     MPWRec_Contents,
  32.     MPWRec_Reference,
  33.     MPWRec_Computed_Reference,
  34.     MPWRec_Filename,
  35.     MPWRec_SourceStatement,
  36.     MPWRec_ModuleBegin,
  37.     MPWRec_ModuleEnd,
  38.     MPWRec_BlockBegin,
  39.     MPWRec_BlockEnd,
  40.     MPWRec_LocalIdentifier,
  41.     MPWRec_LocalLabel,
  42.     MPWRec_LocalType
  43. };
  44.  
  45. struct MPWRecord_S {
  46.     enum MPWRecords_E               RecordType;
  47.     unsigned char P__H             *theRecord;
  48.     short                           recsize;
  49.     MPWRecordVia_t                  next;
  50. };
  51.  
  52. struct MPWDict_S {
  53.     unsigned short                  DictID;
  54.     short                           isEXTERNAL;    /* This is a flag */
  55.     MPWDictVia_t                    next;
  56.     char                            name[1];
  57. };
  58.  
  59. struct MPWDictList_S {
  60.     MPWDictVia_t                    head;
  61.     MPWDictVia_t                    tail;
  62.     int                             count;
  63. };
  64.  
  65. struct MPWList_S {
  66.     MPWRecordVia_t                  head;
  67.     MPWRecordVia_t                  tail;
  68.     int                             count;
  69. };
  70.  
  71. #endif
  72.